<script lang="ts">
export default {
    name: 'Settings'
}
</script>
<script setup lang="ts">
import { ref } from 'vue';
import { getOSInfo, getCPUInfo } from '../plugins/vuelectron';
const osName = ref<string>('');
const osVersion = ref<string>('');
const arch = ref<string>('');

getOSInfo().then((info) => {
    osName.value = info.os;
    osVersion.value = info.version;
})

getCPUInfo().then((info) => {
    arch.value = info.arch;
})





</script>

<template>
    <div class="app">
        <div>
            <h2>系统信息</h2>
            <p>系统：{{ osName }} {{ osVersion }}</p>
            <p>架构：{{ arch }}</p>
            <h2>关于</h2>
            <p>openKylin FAQ平台应用</p>
            <p>版本：1.0.0</p>
            <p>作者：FAQ SIG - DSOE1024</p>
            <p>遵守MIT许可协议</p>
        </div>
    </div>
</template>

<style scoped></style>
